package cn.mastor.system.mapper;

import cn.mastor.basic.mapper.BaseMapper;
import cn.mastor.system.domain.Menu;
import cn.mastor.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itsource
 * @since 2022-10-24
 */
public interface RoleMapper extends BaseMapper<Role> {
    List<Long> findByroId(Long id);
    List<Long> findBypeId(Long id);
    List<Menu> findmenuAll(Long id);
    void updatepermissions(@Param("roleId")Long roleId,@Param("permissionId")List<Long> permissionId);
    void updatemenus(@Param("roleId")Long roleId,@Param("menuId")List<Long> menuId);
    void deletepermission(Long id);
    void deletemenu(Long id);
}
